home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1328 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  1.1 KB  |  35 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.micon._currentframe == 1 && _root.range == true)
  5.       {
  6.          if(_root.even19 == 0 && _root.even21 == 0 && _root.even20 == 0)
  7.          {
  8.             _root.next_dis1 = 2;
  9.             _root.next_txt1 = "Works just fine.";
  10.          }
  11.          else
  12.          {
  13.             _root.next_dis1 = 2;
  14.             _root.next_txt1 = "It\'s spraying a lot further now!";
  15.          }
  16.       }
  17.       if(_root.micon._currentframe == 2)
  18.       {
  19.          _root.txt_number = 2;
  20.          _root.next_dis2 = 2;
  21.          _root.next_txt2 = "One year, the seniors rigged this fountain to spray most of the freshman.  Luckily I was one of the cool kids whom didnΓÇÖt get sprayed...";
  22.          _root.next_txt1 = "What?  ItΓÇÖs believable...";
  23.          _root.next_dis1 = 2;
  24.       }
  25.       if(_root.micon._currentframe == 9 && _root.range == true)
  26.       {
  27.          _root.sfx.gotoAndStop(3);
  28.          _root.even19 = 1;
  29.          _root.micon.gotoAndStop(1);
  30.          _root.next_dis1 = 2;
  31.          _root.next_txt1 = "This should make it spray a little further.";
  32.       }
  33.    }
  34. }
  35.